package com.spring.beans;

import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean {
    public Object getObject() throws Exception {
        return new Work();
    }

    public Class<?> getObjectType() {
        return Work.class;
    }

    public boolean isSingleton() {
        return false;
    }
}
